import axios from "@/api/config"
// operations：运行维护 开始=======

export const recycle = {
    list: data=>axios.post('/log/management/recycle/page',data),
    restore: async (data) => { //回收站恢复数据
        const url = '/log/management/recycle/restore/recycle/'+data;
        let res = await axios.get(url);
        return res;
    },
    delete: async (data) => { //回收站删除
        const url = '/log/management/recycle/delete/'+data;
        let res = await axios.delete(url);
        return res;
    },
    detail: async (data) => { //回收站详情
        const url = '/log/management/recycle/'+data;
        let res = await axios.get(url);
        return res;
    },
}

// 在线人员 开始 =======
export const online = {
    list: data=>axios.post('/ssm/online/user/page',data),
    offline: async (data) => { //回收站详情
        const url = '/ssm/online/user/forced/offline/'+data;
        let res = await axios.get(url);
        return res;
    },
    getToken: async () => { //回收站详情
        const url = 'sso/system/token/refresh' + "?refreshToken=" + localStorage.getItem("refreshToken");
        let res = await axios.get(url);
        return res;
    },
}